package com.tongji.admin.event
{
	
	import com.tongji.admin.vo.Type;
	
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2011/7/
	 */ 
	public class GoodsTypeAdminEvent extends Event
	{
		public static const ADD_A_TYPE:String = "addAType";
		public static const GET_ALL_TYPES:String = "getAllTypes";
		public static const UPDATE_TYPES:String = "updateTypes";
		
		public var goodsType:Type;
		public var types:ArrayCollection;
		
		public function GoodsTypeAdminEvent(type:String, goodsType:Type = null, types:ArrayCollection = null)
		{
			super(type);
			this.goodsType = goodsType;
			this.types = types;
		}
		
		override public function clone():Event
		{
			return new GoodsTypeAdminEvent(type, goodsType, types);
		}
	}
}